package com.hk.commons.converters;

import com.hk.commons.util.ByteConstants;
import org.springframework.core.convert.converter.Converter;

/**
 * @author Kevin
 * @date 2022/12/5 23:09
 */
public class ByteToBooleanConverter implements Converter<Byte, Boolean> {

    @Override
    public Boolean convert(Byte source) {
        return source != ByteConstants.ZERO;
    }
}
